<div class="top">
	<div class="logo"><a href="<?= URL::base() ?>"><img src="<?= URL::site('static/uploads/settings/logo.png') ?>" alt="" /></a></div>
	<div class="search_cont">
		<?= Form::open('search', array('method' => 'get')); ?>
			<input type="text" name="query" class="search_field" placeholder="Поиск по сайту" />
			<input type="submit" class="search_button" value="Искать" />
		<?= Form::close(); ?>
	</div>
	<div class="tel"><img src="<?= URL::site('static/css/images/phone.png') ?>" alt="" /><span><?= $sitetext['tel_prefix']['_value'] ?></span> <?= $sitetext['tel']['_value'] ?></div>
</div>
<table class="menu_cont" cellspacing="0px" cellpadding="0px">
	<tr valign="middle">
		<? $i = 0; foreach ($menu as $key => $item): ?>
			<? $i++ ?>
			<td class="menu">
				<div style="position: relative" <?= $item->with_childrens != 0 ? 'with_childrens="'.$item->id.'"' : '' ?>>
					<a href="<?= URL::site($item->link) ?>"><div class="m_cont"><?= $item->title ?></div></a>
				</div>
			</td>
			<? if (count($menu) != $i): ?>
				<td class="menu_devide"></td>
			<? endif ?>
		<? endforeach ?>
	</tr>
</table>
